<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>前后端调用之post请求测试</title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<script>
		/*需求:新增
		语法：axios.post(url,新增参数)
		
		*/
	 
	   let user = {
		   name:'小燕子',
		   age:'18',
		   sex:'女'
	   }
	   let url = 'http://localhost:8090/axios/saveUser'
	   axios.post(url,user).then(resu=>{
		   console.log(resu.data)
	   })
		</script>
	</body>
</html>
